$OpenBSD: patch-gtk2_ardour_editor_keyboard_cc,v 1.1 2016/10/28 13:46:17 ajacoutot Exp $

From 65c2e089ab263c83bff7d2e945b80c53f80b749b Mon Sep 17 00:00:00 2001
From: Nils Philippsen <nils@tiptoe.de>
Date: Thu, 4 Aug 2016 09:48:47 +0200
Subject: [PATCH] workaround changes in glibmm 2.49.x

--- gtk2_ardour/editor_keyboard.cc.orig	Fri Oct 28 13:09:00 2016
+++ gtk2_ardour/editor_keyboard.cc	Fri Oct 28 13:10:12 2016
@@ -42,9 +42,9 @@ Editor::kbd_driver (sigc::slot<void,GdkEvent*> theslot
 	Glib::RefPtr<Gdk::Window> evw = track_canvas->get_window()->get_pointer (x, y, mask);
 	bool doit = false;
 
-	if (use_track_canvas && track_canvas_event_box.get_window()->get_pointer(x, y, mask) != 0) {
+	if (use_track_canvas && track_canvas_event_box.get_window()->get_pointer(x, y, mask)) {
 		doit = true;
-	} else if (use_time_canvas && time_canvas_event_box.get_window()->get_pointer(x, y, mask)!= 0) {
+	} else if (use_time_canvas && time_canvas_event_box.get_window()->get_pointer(x, y, mask)) {
 		doit = true;
 	}
 
